package com.qyhl.module_activities.act.player.newlist;


import com.google.gson.JsonArray;

public class ActNewVotePresenter implements ActNewVoteContract.ActNewVotePresenter {
    private ActNewVoteContract.ActNewVoteView mView;
    private ActNewVoteModel mModel;

    ActNewVotePresenter(ActNewVoteContract.ActNewVoteView mView) {
        this.mView = mView;
        this.mModel = new ActNewVoteModel(this);
    }

    @Override
    public void doVote(String actId, String userName, JsonArray playVote) {
        mModel.doVote(actId, userName, playVote);
    }

    @Override
    public void onVoteError(String string) {
        mView.onVoteError(string);
    }


    @Override
    public void onVoteSuccess(String coin) {
        mView.onVoteSuccess(coin);
    }
}
